package com.example.taximeter.bean;

/**
 * 返回信息
 */
public class ReturnInfo {

    private String message;
    private String other;
    private String session;
    private String filename;
    private String filepath;
    private Object object;
    private Integer totalpage;
    private Long totalnum;
    private Object list;

    public static ReturnInfo info1(String message){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        return ri;
    }

    public static ReturnInfo info1(String message, String other){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        ri.other = other;
        return ri;
    }

    public static ReturnInfo info5(String message, String session){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        ri.session = session;
        return ri;
    }

    public static ReturnInfo info2(Object object){
        ReturnInfo ri = new ReturnInfo();
        ri.object = object;
        return ri;
    }

    public static ReturnInfo info3(String message ,Object object){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        ri.object = object;
        return ri;
    }

    public static ReturnInfo info4(String message, String filename, String filepath){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        ri.filename = filename;
        ri.filepath = filepath;
        return ri;
    }

    public static ReturnInfo info5(Integer totalpage ,Long totalnum,Object list){
        ReturnInfo ri = new ReturnInfo();
        ri.totalpage = totalpage;
        ri.totalnum = totalnum;
        ri.list = list;
        return ri;
    }

    public Integer getTotalpage() {
        return totalpage;
    }

    public void setTotalpage(Integer totalpage) {
        this.totalpage = totalpage;
    }

    public Long getTotalnum() {
        return totalnum;
    }

    public void setTotalnum(Long totalnum) {
        this.totalnum = totalnum;
    }

    public Object getList() {
        return list;
    }

    public void setList(Object list) {
        this.list = list;
    }

    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getFilepath() {
        return filepath;
    }

    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
